/*
 * Event.hpp
 *
 *  Created on: 12-12-2010
 *      Author: Przemek
 */

#pragma once

class Control;

/*
 * Base class for every GUI event which has a source.
 */
class Event
{
	private:
		const Control* source;

	public:
		explicit Event(const Control* source = 0);
		Event(const Event& other);
		Event& operator=(const Event& other);

		const Control* getSource() const;
		void setSource(const Control* source);
};
